const axios = require('../utils/axios')

module.exports = code => {
  return axios({
    url: '/sns/jscode2session',
    method: 'get',
    params: {
      appid: 'wxb067435e8114fb8b',
      secret: '07eec2213c95bd1a70f41e5fc4d37fc3',
      js_code: code,
      grant_type: 'authorization_code'
    }
  })
}